package com.example.mock.mapper;

import com.example.postman.restful.entity.User;
import org.springframework.stereotype.Component;

@Component
public class MockMapper {
    public int add(User user) {
        return 1;
    }

    public int update(User user) {
        return 1;
    }

    public int delete(int userId) {
        return 0;
    }

    public User select(int userId) {
        return new User("310229", "011", "success");
    }
}
